package com.ant.myagile.backlog
import grails.converters.JSON
import grails.plugins.springsecurity.Secured
import com.ant.myagile.Member
import com.ant.myagile.MemberService;
import com.ant.myagile.SprintService;

class BacklogsController {
	def teamService
	def SpringSecurityService
	SprintService sprintService
	static allowedMethods = [save: "POST", update: "POST", delete: "POST"]
	MemberService memberService;
	
	@Secured(['ROLE_USER', 'ROLE_ADMIN', 'ROLE_GUEST'])
    def index() {
		Member loggedInUser = memberService.findLoggedInMember();
		[projects : loggedInUser.projects]
	}
}
